Detecting device, detecting method, and program

ABSTRACT

To detect a distant object that may become an obstacle to a traveling destination of a moving vehicle or the like more accurately than the conventional, there is provided a detecting device, a program used in the detecting device, and a detecting method using the detecting device, where the detecting device includes: an acquisition section for acquiring two or more images captured in two or more imaging devices provided at different heights; and a detection section for detecting a rising portion of an identical object toward the imaging devices based on a difference between the lengths of the identical object in the height direction in the two or more images.

BACKGROUND

Technical Field

The present invention relates to a detecting device, a detecting method,and a program.

Description of the Related Art

Methods of detecting an obstacle to a car or the like by using theparallax of a stereo camera are known (for example, Patent Literatures 1to 4). However, in the conventional methods, since the parallax becomessmaller as the distance to an object increases, the distant obstaclecannot be detected accurately. For example, since a speed-limit sign orthe like painted on a road surface is processed to be identical to theroad surface, it is not detected as an obstacle by mistake (i.e., nofalse alarm). On the other hand, since a distant obstacle appears small,the obstacle is often overlooked (false negative) because of no greatdifference from the road surface.

CITATION LIST

(Patent Literature 1) Japanese Patent Application Publication No.H04-161810.

(Patent Literature 2) Japanese Patent Application Publication No.2009-282736.

(Patent Literature 3) Japanese Patent Application Publication No.2005-217883.

(Patent Literature 4) Japanese Patent Application Publication No.H10-38561.

SUMMARY

It is an object of the present invention to detect a distant objectlikely to become an obstacle accurately.

In a first aspect of the present invention, there are provided adetecting device, a program used in the detecting device, and adetecting method using the detecting device, where the detecting deviceincludes: an acquisition section for acquiring a plurality of imagescaptured in a plurality of imaging devices provided at differentheights; and a detection section for detecting a rising portion of anidentical object toward the imaging devices based on a differencebetween the lengths of the identical object in the height direction inthe plurality of images.

It should be noted that the above summary of the invention does notrecite all the features of the present invention, and subcombinations ofthese feature groups can also be inventions.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram of a moving vehicle with a detecting deviceof an embodiment mounted therein.

FIG. 2 shows an outline of the detection principle of the detectingdevice of the embodiment.

FIG. 3 shows the outline of the detection principle of the detectingdevice of the embodiment.

FIG. 4 shows a flow of processing performed by the detecting device ofthe embodiment.

FIG. 5 shows a flow of specific processing in S130 of FIG. 4.

FIG. 6 shows an example of two or more images captured by two or moreimaging devices and the like.

FIG. 7 shows an outline of an obstacle determination when there is arising angle according to a variation of the embodiment.

FIG. 8 shows an example of the hardware configuration of a computer.

DETAILED DESCRIPTION

While the present invention will be described in connection with apreferred embodiment thereof, the following embodiment is not intendedto limit the inventions according to the appended claims. Further, allthe combinations of the features described in the embodiment are notnecessarily essential to the means for solving the problem in thepresent invention.

FIG. 1 shows a block diagram of a moving vehicle 1 that carries adetecting device 30 according to the embodiment. For example, the movingvehicle 1 may be an auto car, a bicycle, a car such as a rail car, aship, an airplane, or the like, which uses two or more imaging devicesto detect an obstacle that obstructs the traveling. In the embodiment,the description will be made of a case where the moving vehicle 1 is anauto car. The detecting device 30 detects a line segment or a planeportion (also called a rising portion) rising toward the movingdirection of the moving vehicle 1 to detect an obstacle. The movingvehicle 1 includes an imaging device 20, an imaging device 22, and thedetecting device 30.

The imaging devices 20 and 22 may be digital cameras provided atdifferent heights in the moving vehicle 1. For example, the imagingdevices 20 and 22 are so provided that the imaging direction will facetoward the moving direction of the moving vehicle 1 to generate images,each of which is obtained by capturing a road surface in the movingdirection of the moving vehicle 1, respectively. As an example, theimaging device 20 may be arranged near the rearview mirror of the autocar and the imaging device 22 may be arranged near the front licenseplate of the auto car. The imaging device 20 and the imaging device 22provide the captured images to the detecting device 30.

The detecting device 30 detects obstacles in the moving direction of themoving vehicle 1 based on two or more images captured by the two or moreimaging devices 20 and 22. The detecting device 30 has an acquisitionsection 310, an extraction section 320, a detection section 330, adistance calculation section 340, a determination section 350, and anoutput section 360.

The acquisition section 310 acquires the two or more images captured bythe two or more imaging devices 20 and 22. The acquisition section 310supplies the acquired two or more images to the extraction section 320.

The extraction section 320 extracts candidates for obstacles from someof the two or more images. For example, the extraction section 320 mayextract, as the obstacle candidate, a region different in feature suchas luminance from the surrounding regions in one of the two or moreimages (e.g., an image from the imaging device 20). The extractionsection 320 supplies the extracted obstacle candidate to the detectionsection 330.

The detection section 330 detects an object having a portion risingtoward the moving vehicle 1 from the two or more images. For example,from an image (e.g., an image from the imaging device 22), unused toextract the obstacle candidate among the two or more images, thedetection section 330 detects a region similar to the extracted obstaclecandidate to identify the region as an identical object corresponding toan identical obstacle candidate captured in common by the two or moreimaging devices.

Then, based on a difference in terms of the length of the identicalobject in the height direction in the two or more images, the detectionsection 330 detects a rising portion of the identical object toward theimaging device 20 or the like. A specific detecting method for therising portion by the detection section 330 will be described later. Thedetection section 330 supplies the identical object identified from thetwo or more images to the distance calculation section 340, and suppliesinformation indicating whether a rising portion is detected in theidentical object to the determination section 350.

Based on the amounts of parallax of the two or more images, the distancecalculation section 340 calculates distances to the identical object.For example, based on the shift amounts of a center portion of theidentical object in the height direction in the two or more images, thedistance calculation section 340 calculates distance from the movingvehicle 1 to the identical object. The distance calculation section 340supplies the calculated distance to the determination section 350.

Based on the detection result as to whether the identical object has arising portion, the determination section 350 determines whether theidentical object is an obstacle. For example, among identical objects asobstacle candidates in the two or more images, the determination section350 determines an identical object having a rising portion of apredetermined height or more to be an obstacle. The determinationsection 350 supplies the determination result to the output section 360.

The output section 360 outputs the determination result by thedetermination section 350. For example, the output section 360 maydisplay the detected obstacle on a display of the moving vehicle 1 towarn passengers of the presence of the obstacle.

Thus, in addition to/instead of the parallax of an identical object inthe images of the two or more imaging devices 20 and 22 provided atdifferent heights, the detecting device 30 uses a difference in terms ofthe length of the identical object in the height direction to determinean obstacle. When the identical object is in the distance, thedifference in terms of the length of the identical object in the heightdirection is easier to detect on the images than the parallax of theidentical object. The detecting device 30 can determine whether adistant object is an obstacle to the moving vehicle 1 more accuratelythan the case of using only the parallax of the identical object. Thus,the detecting device 30 can ensure safe traveling of the moving vehicle1.

FIGS. 2 and 3 show an outline of the detection principle of thedetecting device 30 of the embodiment. FIG. 2 shows a state in which theimaging device 20 on a higher position side (height P_(H)) and theimaging device 22 on a lower position side (height P_(L), whereP_(L)<P_(H)) capture an identical object 100 having an upright height H(e.g., perpendicular to the ground, the imaging device 20, or the like).In the figures, the length of the identical object 100 in the heightdirection in the image of the imaging device 20 is denoted by V_(H), andthe length of the identical object 100 in the height direction in theimage of the imaging device 22 is denoted by V_(L).

In the images of the imaging device 20 and the imaging device 22, thelength V_(H) and the length V_(L) are almost the same length. In otherwords, when the object 100 a rising portion toward the moving vehicle 1,the lengths of images of the identical object 100 in the heightdirection in the two or more images become almost the same.

FIG. 3A shows a state in which the imaging device 20 on the higherposition side (height P_(H)) and the imaging device 22 on the lowerposition side (height P_(L), where P_(L)<P_(H)) capture an identicalobject 100′ having a depth D and provided along the horizontal direction(e.g., parallel to the ground or horizontal to the imaging device 20).The length of the identical object 100′ in the height direction in theimage of the imaging device 20 is denoted by V_(H), and the length ofthe identical object 100′ in the height direction in the image of theimaging device 22 is denoted by V_(L).

As shown, the length V_(H) is longer than the length V_(L) in the imagesof the imaging device 20 and the imaging device 22. In other words, inthe case where the identical object 100′ is arranged horizontallywithout any rising portion toward the moving vehicle 1, the length inthe height direction (vertical direction) when the imaging device 20 onthe higher position side captures the identical object 100′ is longerthan the length captured by the imaging device 22 on the lower positionside.

FIG. 3B shows an enlarged view in the vicinity of the identical object100′ in FIG. 3A. As shown, the length V_(H) is proportional to a lengthD_(H) indicated by the right arrow in FIG. 3B and the length V_(L) isproportional to a length D_(L) indicated by the left arrow in FIG. 3B.Here, the length D_(H) is DP_(H)/Z and the length D_(L) is DP_(L)/Z.Therefore, the length ratio V_(H):V_(L) of the lengths of the identicalobject 100′ in the height direction in the two or more images becomesequivalent to the height ratio P_(H):P_(L) of the imaging device 20 andthe imaging device 22.

For example, when the height ratio of the imaging device 20 and theimaging device 22 is 3:1, the length ratio V_(H):V_(L) in the heightdirection is also 3:1. When the identical object 100′ is in thedistance, the parallax of the identical object 100′ is likely to be verysmall like a few pixels or less. However, since the length ratioV_(H):V_(L) is always constant, i.e., 3:1, the rising of the identicalobject 100′ is easier to detect than the parallax.

Therefore, when there is a difference in the two or more images in termsof the length of the identical object in the height direction, thedetection section 330 determines that a dominant plane of the identicalobject lies along a direction approximately parallel to the optical axisof the imaging device 20 and the like (i.e., horizontal direction), andhence determines that the identical object has no rising portion towardthe imaging device 20 and the like.

When there is no difference in the two or more images in terms of thelength of the identical object in the height direction, the detectionsection 330 determines that the dominant plane of the identical objectlies along a direction approximately vertical to the optical axis of theimaging device 20 and the like (i.e., vertical direction), and hencedetermines that the identical object has a rising portion toward theimaging device 20 and the like.

FIG. 4 shows a flow of processing performed by the detecting device 30of the embodiment. The detecting device 30 performs processing from S110to S160 to detect an obstacle to the moving vehicle 1.

First, in S110, the acquisition section 310 acquires two or more imagescaptured by the two or more imaging devices 20 and 22 provided atdifferent heights. For example, the acquisition section 310 acquiresdigital images captured by the imaging devices 20 and 22, respectively.The acquisition section 310 may acquire video and/or still images fromthe imaging device 20 and the like.

The acquisition section 310 may acquire two or more images from two ormore imaging devices 20 and the like arranged in the vertical direction,or instead of this, it may acquire two or more images from two or moreimaging devices 20 and the like arranged in an oblique direction (e.g.,a direction oblique to the ground or the imaging device 20 and thelike). Further, the acquisition section 310 may acquire two or moreimages from at least two imaging devices different in height,respectively. The acquisition section 310 supplies the acquired two ormore images to the extraction section 320.

Next, in S120, the extraction section 320 extracts an obstacle candidateas the candidate for an obstacle from the two or more images. Forexample, the extraction section 320 extracts an obstacle candidate fromone of the two or more images (e.g., an image from the imaging device20) using an existing method for automatically extracting a region ofinterest (ROI).

As an example, the extraction section 320 may divide the image from theimaging device 20 into multiple superpixels (regions, each of whichincludes multiple pixels and has a predetermined size and shape with thefeatures of the included pixels such as color similar to each other) toextract, as an obstacle candidate, any of the multiple superpixelsdifferent by a reference amount or more from surrounding regions interms of the features such as luminance and/or chromaticity. Theextraction section 320 supplies the extracted obstacle candidate to thedetection section 330.

Next, in S130, the detection section 330 detects a rising portion of theobstacle candidate. For example, the detection section 330 firstidentifies an identical object in the two or more images. Specifically,the detection section 330 identifies, as the identical object, a regionsimilar to the extracted obstacle candidate from an image (e.g., animage from the imaging device 22) unused to extract the obstaclecandidate in S120 among the two or more images.

After that, based on the length ratio V_(H):V_(L) of the regionscorresponding to the identical object in the height direction in the twoor more images, and the height ratio P_(H):P_(L) of the two or moreimaging devices 20 and the like, the detection section 330 detects arising portion. The detection section 330 supplies a correspondencerelationship between images of the identical object in the two or moreimages to the distance calculation section 340, and supplies informationas to whether a rising portion is detected in the identical object tothe determination section 350.

Next, in S140, the distance calculation section 340 calculates distanceto the identical object based on the amounts of parallax of the two ormore images. For example, the distance calculation section 340calculates distance from the moving vehicle 1 to the identical objectbased on the amounts of parallax of the two or more images in the heightdirection. As an example, the distance calculation section 340 uses thefocal lengths and relative positions of the two or more imaging devices,and the parallax of the identical object having the correspondencerelationship in the two or more images to calculate distance z from thepositions of the imaging devices to the obstacle candidate bytriangulation.

When the moving vehicle 1 has two or more imaging devices provided inthe horizontal direction (for example, when imaging devices are providedat respective vertices of a triangle having a horizontal base, or thelike), the distance calculation section 340 may calculate the distance zto the identical object based on the amounts of parallax of two or moreimages in the horizontal direction instead of/in addition to the amountsof parallax in the height direction.

Thus, even when the two or more imaging devices 20 and the like cannotbe arranged to be sufficiently separated in the longitudinal direction,the imaging devices can be installed to be sufficiently separated in thetransverse direction to enable the distance calculation section 340 toobtain parallax images with large amounts of parallax, and hence tocalculate the distance z more accurately. The distance calculationsection 340 supplies the calculated distance z to the identical objectto the determination section 350.

Next, in S150, the determination section 350 determines whether theidentical object is an obstacle that obstructs the traveling of themoving vehicle 1. For example, among images of the identical objectdetected in the two or more images, the determination section 350selects one having a rising portion. Next, the determination section 350uses the distance to the selected identical object and the length of theidentical object in the height direction, and the focal lengths of theimaging devices to estimate an actual height h of the rising portion.After that, the determination section 350 determines whether theidentical object is an obstacle based on the estimated height h. Forexample, among selected identical objects, the determination section 350may determine, to be an obstacle, one whose estimated height h is morethan or equal to a predetermined threshold value.

Here, an example of specific processing performed by the determinationsection 350 will be described. First, the determination section 350 usesdistance z[m] to the obstacle candidate, the length V_(H) [pixel] of theobstacle in the height direction in one image, and the focal length f[pixel] of an imaging device that captured the one image to calculate anactual height of the obstacle candidate as h=zV_(H)/f[m].

Next, the determination section 350 uses the calculated height h todetermine whether the obstacle candidate can obstruct the traveling ofthe moving vehicle 1, i.e., whether it is an obstacle. For example, whenh>T_(h) where a threshold value of the height h is denoted by T_(h)(e.g., 0.1 [m]), the determination section 350 determines the obstaclecandidate to be an obstacle.

Here, the determination section 350 may determine all identical objectshaving rising portions to be obstacles without using distancescalculated by the distance calculation section 340. The determinationsection 350 supplies the determination result to the output section 360.

Next, in S160, the output section 360 outputs the determination resultby the determination section 350. For example, the output section 360may display the direction of the detected obstacle and/or the distanceto the obstacle on a display for passengers of the moving vehicle 1 towarn the passengers of the presence of the obstacle. Further, the outputsection 360 may display the position of and distance to the obstacle ona head-up display provided in the moving vehicle 1.

FIG. 5 shows a flow of specific processing in S130 of FIG. 4. Thedetection section 330 may perform processing from S131 to S139 toperform the processing in S130.

The detection section 330 detects a rising portion based on the lengthratio V_(H):V_(L) of images of an identical object in the heightdirection in the two or more images. To this end, the detection section330 is first required to identify the identical object in the two ormore images. Since it is not easy to identify an identical object in thetwo or more images, the following will show, as an example, a method ofidentifying an identical object concurrently with the calculation of thelength ratio r=V_(L)/V_(H) in the height direction using two imagesobtained at the same time from two imaging devices.

First, in S131, the detection section 330 sets i=0.

Next, in S132, the detection section 330 generates a magnification s,used to create a template image reduced by the factor of s in the heightdirection, from an image obtained in the upper imaging device (imagingdevice 20) based on the image of an obstacle candidate extracted by theextraction section 320. Here, s takes on multiple discrete valuesincluding both ends in a range of [P_(L)/P_(H), 1.0], which may bes=P_(L)/P_(H)+i×d, for example. For example, i takes a value set by thedetection section 330 among integer values of 1 to n−1, and d may be(1−P_(L)/P_(H))/(n−1). Therefore, s takes on n values of P_(L)/P_(H),P_(L)/P_(H)+d, P_(L)/P_(H)+2d, . . . , P_(L)/P_(H)+(n−2)d, and 1. Wheni=0 is set, the detection section 330 generates P_(L)/P_(H) as themagnification s.

Next, in S133, the detection section 330 uses the magnification s tocreate a template image reduced by the factor of s in the heightdirection based on the image of the obstacle candidate extracted by theextraction section 320.

Next, in S134, the detection section 330 performs template matching ofthe template image reduced by the factor of s mentioned above withanother image obtained in the lower imaging device (imaging device 22)in S120 among the two or more images to calculate a matching score m_(s)with the template image at the best matching position in the otherimage.

In the above template matching in S134, the detection section 330 scansthe template image over the whole of the other image to calculate amatching score at each position. After calculating matching scores overthe whole image, the detection section 330 detects such a position thatthe matching score is the highest and sets the matching score as m_(s).Here, the detection section 330 may use normalized cross-correlation orSSD (Sum of Squared Difference) to calculate the matching score.

In S135, the detection section 330 determines whether i<n. Whendetermining i<n, the detection section 330 adds 1 to i, and theprocedure returns to S132. Thus, the detection section 330 performs thegeneration of the magnification s and template matching on n ways of sin processing from S132 to S134 to calculate a magnification giving themaximum matching score among multiple magnification candidates by usingeach of multiple template images. When the detection section 330 doesnot determine i<n, the procedure proceeds to S136.

After that, in S136, the detection section 330 calculates r=argmax_(s)(m_(s)) to calculate a value of the magnification s giving themaximum m_(s) as the length ratio r in the height direction. The valueof r indicates a ratio of the length V_(L) of a region corresponding tothe identical object in the height direction in an image captured from alower position to the length V_(H) of a region corresponding to theidentical object in the height direction in an image captured from ahigher position, which becomes V_(H):V_(L)=1:r.

Next, in S137, the detection section 330 determines whether the obstaclecandidate has a rising portion based on r and a predetermined thresholdvalue. For example, when a threshold value of r is denoted by T_(r), thedetection section 330 determines whether r>T_(r). For example, thedetection section 330 may use T_(r)=(1+P_(L)/P_(H))/2 as the thresholdvalue T_(r). When the detection section 330 determines that r>T_(r), theprocedure proceeds to S139, while if not, the procedure proceeds toS138.

In S138, the detection section 330 does not detect any rising portion.

In S139, the detection section 330 determines that the obstaclecandidate corresponding to the identical object has a rising portion asshown in FIG. 2. The detection section 330 supplies, to the distancecalculation section 340, a correspondence relationship between images ofthe identical object in the two or more images in terms of the obstaclecandidate determined to have a rising portion.

Thus, when the ratio r, of the length of the region corresponding to theidentical object in the height direction in the image captured from thelower position to the length of the region corresponding to theidentical object in the height direction in the image captured from thehigher position, is larger than the predetermined threshold value T_(r),the detection section 330 detects a rising portion of the identicalobject as the obstacle candidate toward the imaging device 20 and thelike.

In the template matching in S133, the detection section 330 may limitthe range (search range) of scanning the template image in another imageto a range near an epipolar line, rather than the whole image, toidentify the identical object in the two or more images more accurately.For example, the detection section 330 may set, as the search range, aregion spreading a predetermined distance from the epipolar line in theother image.

The epipolar geometry used here is a geometric constraint based on thefact that the relative position of two imaging devices is known, meaningsuch a constraint that the center point of an identical object capturedon one image is constrained onto a straight line passing through anepipole on another image. For example, when two imaging devices arrangedin the vertical direction are used, a line extending vertically on oneimage in the same horizontal position as the center of an obstaclecandidate on another image is the epipolar line.

FIG. 6 shows an example of the two or more images captured by the two ormore imaging devices 20 and 22. Here, an image captured by the imagingdevice 20 on the higher position side is shown as an upper view, and animage captured by the imaging device 22 on the lower position side isshown as a lower view. An obstacle candidate 402 and an obstaclecandidate 404 as identical objects located on a road are contained inboth images.

The obstacle candidate 402 is long in the height direction (in thevertical direction in FIG. 6) in the upper view, but short in the heightdirection in the lower view. Therefore, the detecting device 30 detectsthe obstacle candidate 402 as an object along the horizontal directionas shown in FIG. 3. Since the object along the horizontal direction isconsidered as a traffic sign painted on the road surface or the like,the object is likely not to obstruct the traveling of the moving vehicle1.

On the other hand, the length of the obstacle candidate 404 in theheight direction in the upper view is nearly equal to the length in theheight direction in the lower view. Therefore, the detecting device 30detects the obstacle candidate 404 as a rising object as shown in FIG.2. Since the obstacle candidate 404 is considered as an object having aheight and left on the road, the obstacle candidate 404 is an obstacleto the traveling of the moving vehicle 1.

In addition to the case where an object is expressed as either anupright object or an object along the horizontal direction, a case wherean object having a tilt therebetween is considered will be describedbelow as a variation of the aforementioned embodiment.

In the variation, the detecting device 30 may perform processing in S110and S120 by the acquisition section 310 and the extraction section 320in the same manner as in the aforementioned embodiment.

In the variation, the detection section 330 may perform processing inS130 including S131 to S136 in the same manner as in the aforementionedembodiment to identify an identical object in the two or more images andcalculate the length ratio r in the height direction. Next, thedetection section 330 supplies, to the distance calculation section 340,a correspondence between images of the identical object in the two ormore images. Further, the detection section 330 supplies the lengthratio r in the height direction to the determination section 350. In thevariation, the detection section 330 does not determine whether theidentical object has a rising portion.

The distance calculation section 340 may perform processing in S140 inthe same manner as in the aforementioned embodiment.

In S150, the determination section 350 uses the length ratio r betweenimages of the identical object in the height direction in the two ormore images, the distance z, and the positions P_(H) and P_(L) of theimaging devices in the height direction to determine whether theidentical object is an obstacle. For example, when the length ratio r(the magnification s giving the maximum matching score calculated inS136) is larger than a threshold value based on the distance to theidentical object, the determination section 350 may determine that theidentical object is an obstacle. The principle of an obstacledetermination in consideration of an angle θ of the identical object inthe variation will be described later. Next, the determination section350 supplies the determination result to the output section 360.

The output section 360 may perform processing in the same manner as inS160.

FIG. 7 shows an outline of the obstacle determination made by thedetermination section 350 according to the variation corresponding toFIG. 3B. As shown, an identical object 100′ has a tilt angle θ. In thiscase, the height V_(H) corresponding to the identical object in an imagecaptured from the higher position is proportional to D_(H) in FIG. 7,having a relation as V_(H)=αD_(H). Further, the height V_(L)corresponding to the identical object in an image captured from thelower position is proportional to D_(L), having a relation asV_(L)=αD_(L). Here, α is a proportionality coefficient, and D_(H)=D cosθ(z tan θ+P_(H))/(z+cos θ) and D_(L)=D cos θ(z tan θ+P_(H))/(z+cos θ).

In this case, the length ratio between images of the identical object inthe height direction is r=V_(L)/V_(H)=(z tan θ+P_(L))/(z tan θ+P_(H)),monotonically increasing with respect to the angle θ. When angle θ=ψ ormore is determined to be an obstacle, the threshold value of r is set toT_(r)=(z tan ψ+P_(L))/(z tan ψ+P_(H)). The determination section 350uses the distance z, and the positions P_(H) and P_(L) of the imagingdevices in the height direction to set the threshold value T_(r) basedon the distance z to the identical object, and when r>T_(r), thedetermination section 350 determines that the identical object is anobstacle. As mentioned above, the threshold value T_(r) takes adifferent value according to the distance z in the variation.

Thus, the detecting device 30 of the variation determines whether theidentical object 100′ is an obstacle based on the threshold value T_(r)defined using the lengths V_(H) and V_(L) of the images of the identicalobject 100′ in the height direction in the two or more images, theheights of installation positions of the two or more imaging devices,and the distances to and angle reference values of the identical object100′. This enables the detecting device 30 of the variation to detectthe presence of an obstacle even when the obstacle rises at a certainangle and this can ensure the safe traveling of the moving vehicle 1.

In the embodiment and the variation, it is sufficient to provide theimaging device 20 and the imaging device 22 at different heights, but itis preferred that the height ratio should be larger to make it easy forthe detection section 330 to detect a rising portion in order to improvedetection accuracy. For example, it is preferred that the height ratioP_(H):P_(L) between the imaging device 20 and the imaging device 22should be 3:1 or more.

In the above description, the detecting device 30 detects an obstacle tothe moving vehicle 1, which exists on a road or the like, but thedetection target of the detecting device 30 is not limited thereto. Thedetecting device 30 may use the described methods of the embodiment andthe variation to detect whether an object on a surface around thedetecting device 30, such as on the ground, on a wall, or on a ceiling,rises from the surface. For example, the detecting device 30 may useimages from two or more imaging devices installed vertically from a wallsurface to detect an object having a portion rising vertically from thewall.

FIG. 8 shows an example of the hardware configuration of a computer 1900functioning as the detecting device 30. The computer 1900 according tothe embodiment includes: a CPU peripheral section having a CPU 2000, aRAM 2020, a graphics controller 2075, and a display device 2080, whichare interconnected by a host controller 2082; an I/O section having acommunication interface 2030, a hard disk drive 2040, and a CD-ROM drive2060, which are connected to the host controller 2082 through an I/Ocontroller 2084; and a legacy I/O section having a ROM 2010, a flexibledisk drive 2050, and an I/O chip 2070 connected to the I/O controller2084.

The host controller 2082 connects the RAM 2020 with the CPU 2000 and thegraphics controller 2075, which access the RAM 2020 at a high transferrate. The CPU 2000 operates based on programs stored in the ROM 2010 andthe RAM 2020 to control each section. The graphics controller 2075acquires image data generated on a frame buffer provided in the RAM 2020by the CPU 2000 or the like, and displays the image on the displaydevice 2080. Alternatively, the graphics controller 2075 may includetherein a frame buffer for storing image data generated by the CPU 2000or the like.

The I/O controller 2084 connects the host controller 2082 with thecommunication interface 2030, the hard disk drive 2040, and the CD-ROMdrive 2060 as relatively high-speed I/O units. The communicationinterface 2030 communicates with other apparatuses through a network bywire or radio. Further, the communication interface functions ashardware for performing communication. The hard disk drive 2040 storesprograms and data used by the CPU 2000 in the computer 1900. The CD-ROMdrive 2060 reads a program or data from a CD-ROM 2095 and provides theread program or data to the hard disk drive 2040 through the RAM 2020.

Also connected to the I/O controller 2084 are relatively low-speed I/Ounits, i.e., the ROM 2010, the flexible disk drive 2050, and the I/Ochip 2070. The ROM 2010 stores a boot program executed when the computer1900 starts, and/or programs and the like depending on the hardware ofthe computer 1900. The flexible disk drive 2050 reads a program or datafrom a flexible disk 2090, and provides the program or data to the harddisk drive 2040 through the RAM 2020. The I/O chip 2070 connects notonly the flexible disk drive 2050 to the I/O controller 2084, but alsovarious I/O devices to the I/O controller 2084 through a parallel port,a serial port, a keyboard port, and a mouse port, for example.

A program provided to the hard disk drive 2040 through the RAM 2020 isprovided by a user in the form of being stored on a recording medium,such as the flexible disk 2090, a CD-ROM 2095, or an IC card. Theprogram is read from the recording medium, installed in the hard diskdrive 2040 within the computer 1900 through the RAM 2020, and executedby the CPU 2000.

Programs installed on the computer 1900 to cause the computer 1900 tofunction as the detecting device 30 include an acquisition module, anextraction module, detection module, a distance calculation module, adetermination module, and an output module. These programs or modulesmay work on the CPU 2000 and the like to cause the computer 1900 tofunction as the acquisition section 310, the extraction section 320, thedetection section 330, the distance calculation section 340, thedetermination section 350, and the output section 360, respectively.

Information processes described in these programs are read into thecomputer 1900 to function as specific means implemented by software incorporation with the above-mentioned various hardware resources, i.e.,as the acquisition section 310, the extraction section 320, thedetection section 330, the distance calculation section 340, thedetermination section 350, and the output section 360. Then, informationis computed or processed by the specific means depending on the intendeduse of the computer 1900 in the embodiment to build a specific detectingdevice 30 according to the intended use.

As an example, when the computer 1900 communicates with an externaldevice or the like, the CPU 2000 executes a communication program loadedon the RAM 2020 to instruct the communication interface 2030 to performcommunication processing based on the processing content described inthe communication program. Under the control of the CPU 2000, thecommunication interface 2030 reads send data stored in a send bufferarea or the like provided in a storage device, such as the RAM 2020, thehard disk drive 2040, the flexible disk 2090, or the CD-ROM 2095, tosend the data to a network, or writes receive data received from thenetwork to a receive buffer area provided in the storage device. Thus,the communication interface 2030 may transfer data exchanged with thestorage device by the DMA (Direct Memory Access) method. Alternatively,the CPU 2000 may read data from the storage device or the communicationinterface 2030 as a source, and write the data to the communicationinterface 2030 or the storage device as a destination to transfer thesend/receive data.

Further, the CPU 2000 reads, into the RAM 2020, all or necessary partsfrom files or databases stored in an external storage device, such asthe hard disk drive 2040, the CD-ROM drive 2060 (CD-ROM 2095), or theflexible disk drive 2050 (flexible disk 2090), by means of DMA transferor the like to perform various processing on the data on the RAM 2020.Then, the CPU 2000 saves the processed data back to the external storagedevice by means of DMA transfer or the like. In such processing, the RAM2020 can be considered to temporarily hold the content of the externalstorage device. Therefore, in the embodiment, the RAM 2020, the externalstorage device, and the like are collectively referred to as the memory,the storage section, the storage device, or the like.

For example, a storage section of the detecting device 30 may store datareceived/provided thereto from the acquisition section 310, theextraction section 320, the detection section 330, the distancecalculation section 340, the determination section 350, and the outputsection 360 accordingly. For example, the storage section may receiveand store data input from the acquisition section 310. Further, thestorage section may store the result detected by the detection section330 and the result output by the output section 360.

In the description of the embodiment, when it is described thatinformation (e.g., two or more images) is supplied from one component(e.g., the acquisition section 310) to another component (e.g., theextraction section 320), it may include not only a case where theinformation is passed directly from the one component to the othercomponent, but also a case where the information is passed after theinformation is stored in and read from the storage section.

Various programs and various kinds of information, such as data, tables,and databases, in the embodiment are stored in such a storage device astargets of information processing. Note that the CPU 2000 can also holdpart of the content of the RAM 2020 in a cache memory to perform readingand writing on the cache memory. Even in such a form, since the cachememory serves as part of the function of the RAM 2020, the cache memoryshall be included in the RAM 2020, the memory, and/or the storage devicein the embodiment unless otherwise denoted distinctively.

Further, the CPU 2000 performs various processing on the data read fromthe RAM 2020 as specified in a sequence of instructions of a programincluding various arithmetic operations, information processing,conditional determinations, and searching and replacing informationdescribed in the embodiment, and saves the processed data back to theRAM 2020. For example, when a conditional determination is made, the CPU2000 compares any of various variables shown in the embodiment with anyother variable or constant to determine whether it meets a condition,such as larger, smaller, not less than, not more than, or equal to, andwhen the condition is satisfied (or unsatisfied), the procedure branchesto a different sequence of instructions or calls a subroutine.

Further, the CPU 2000 can retrieve information stored in a file or adatabase in the storage device. For example, when two or more entriesare stored in the storage device in such a manner to associate theattribute value of a second attribute with the attribute value of afirst attribute, the CPU 2000 searches the two or more entries stored inthe storage device for an entry with the attribute value of the firstattribute matching with a specified condition to read the attributevalue of the second attribute stored in the entry so that the attributevalue of the second attribute associated with the first attribute thatmeets the predetermined condition can be obtained.

While the present invention has been described with reference to theembodiment, the technical scope of the present invention is not limitedto the description of the aforementioned embodiment. It will be obviousto those skilled in the art that various changes or modifications can beadded to the aforementioned embodiment. From the appended claims, itwill also be obvious that forms to which such changes or modificationsare added shall be included in the technical scope of the presentinvention.

The execution sequence of processes, such as operations, procedures,steps, and stages in the device, system, program, and method describedin the appended claims and the specification, and shown in theaccompanying drawings are not particularly specified as “ahead of,”“prior to,” or the like. It should be noted that the processes can becarried out in any order unless output of the previous process is usedin the subsequent process. Even when the description is made using“first,” “next,” and the like in the appended claims, the specification,and the operation flows in the drawings for convenience sake, it doesnot mean that it is imperative to carry out the processes in this order.

REFERENCE SIGNS LIST

1 moving vehicle, 20 imaging device, 22 imaging device, 30 detectingdevice, 100 identical object, 310 acquisition section, 320 extractionsection, 330 detection section, 340 distance calculation section, 350determination section, 360 output section, 1900 computer, 2000 CPU, 2010ROM, 2020 RAM, 2030 communication interface, 2040 hard disk drive, 2050flexible disk drive, 2060 CD-ROM drive, 2070 I/O chip, 2075 graphicscontroller, 2080 display device, 2082 host controller, 2084 I/Ocontroller, 2090 flexible disk, 2095 CD-ROM

The invention claimed is:
 1. A detecting device comprising: anacquisition section for acquiring a plurality of images captured in aplurality of imaging devices provided at different heights; and adetection section for detecting a rising portion of an identical objecttoward the imaging devices based on a difference between lengths of theidentical object in a height direction in the plurality of images;wherein the plurality of imaging devices are provided in a movingvehicle to capture images in a moving direction of the moving vehicle,and the detecting device further comprises a determination section fordetermining whether the identical object is an obstacle based on adetermination result as to whether the identical object has a risingportion, wherein the determination section estimates a height of theidentical object based on distance to the identical object; and anextraction section for extracting, from the plurality of images, anobstacle candidate as an candidate for the obstacle, wherein thedetermination section determines the identical object having a risingportion higher than or equal to a predetermined height among theobstacle candidates to be the obstacle.
 2. The detecting deviceaccording to claim 1, wherein the detection section detects the risingportion based on a length ratio between regions corresponding to theidentical object in the height direction in the plurality of images. 3.The detecting device according to claim 2, wherein the detection sectiondetects the rising portion based further on a height ratio betweeninstallation positions of the plurality of imaging devices.
 4. Thedetecting device according to claim 3, wherein, on condition that aratio of a length of a region corresponding to the identical object inthe height direction in an image captured from a lower position to alength of a region corresponding to the identical object in the heightdirection in an image captured from a higher position is larger than apredetermined threshold value, the detection section detects a risingportion of the identical object.
 5. The detecting device according toclaim 4, further comprising a distance calculation section forcalculating distance to the identical object based on amounts ofparallax of the plurality of images.
 6. The detecting device accordingto claim 5, wherein the distance calculation section calculates distanceto the identical object based on the amounts of parallax of theplurality of images in the height direction.
 7. The detecting deviceaccording to claim 1, wherein the detection section: generates aplurality of template images obtained by reducing an image of anobstacle candidate included in one image of the plurality of images ateach of a plurality of magnification candidates; performs templatematching using each of the plurality of template images on another imageof the plurality of images to calculate a matching score at a bestmatching position in the other image; calculates a magnification givinga maximum matching score from among the plurality of magnificationcandidates; and on condition that the magnification giving the maximummatching score is larger than a threshold value, detects a risingportion of the obstacle candidate toward the imaging devices.
 8. Adetecting device comprising: an acquisition section for acquiring aplurality of images captured in a plurality of imaging devices providedat different heights; and a detection section for detecting a risingportion of an identical object toward the imaging devices based on adifference between lengths of the identical object in a height directionin the plurality of images; wherein the plurality of imaging devices areprovided in a moving vehicle to capture images in a moving direction ofthe moving vehicle, and the detecting device further comprises: anextraction section for extracting, from the plurality of images, anobstacle candidate as an candidate for an obstacle; a distancecalculation section for calculating distance to an identical objectcorresponding to the obstacle candidate based on amounts of parallax ofthe plurality of images; and a determination section for determiningwhether the identical object is an obstacle; wherein: the detectionsection generates a plurality of template images obtained by reducing animage of the obstacle candidate included in one image of the pluralityof images at each of a plurality of magnification candidates, performstemplate matching using each of the plurality of template images onanother image of the plurality of images, calculates a matching score ata best matching position in the other image, and calculates amagnification giving a maximum matching score from among the pluralityof magnification candidates; and on condition that the magnificationgiving the maximum matching score is larger than a threshold value basedon distance to the identical object, the determination sectiondetermines the identical object to be an obstacle.